﻿using System;
using S1._1_2.ViewModels;

namespace S1.Models
{
    public class Product : ViewModelBase
    {
        private bool _active;

        public bool Active
        {
            get { return _active; }
            set { _active = value; OnPropertyChanged(); }
        }


        private string _productName;

        public string ProductName
        {
            get { return _productName; }
            set { _productName = value; OnPropertyChanged(); }
        }

        private string _category;

        public string Category
        {
            get { return _category; }
            set { _category = value; OnPropertyChanged(); }
        }
        private decimal _price;

        public decimal Price
        {
            get { return _price; }
            set
            {
                if (value < 0) value = 0;
                _price = value;
                OnPropertyChanged();
            }
        }

        private decimal _cost;

        public decimal Cost
        {
            get { return _cost; }
            set
            {
                if (value < 0) value = 0;
                _cost = value;
                OnPropertyChanged();
            }
        }

        private DateTime _introductedDate = DateTime.Now;

        public DateTime IntroductedDate
        {
            get { return _introductedDate; }
            set { _introductedDate = value; OnPropertyChanged(); }
        }

        private string _description;

        public string Description
        {
            get { return _description; }
            set { _description = value; OnPropertyChanged(); }
        }
        private bool _seasonal;

        public bool Seasonal
        {
            get { return _seasonal; }
            set { _seasonal = value; OnPropertyChanged(); }
        }


    }
}

